import Vue from 'vue'
import VueRouter from 'vue-router'
import Index from '../views/base/Index'

Vue.use(VueRouter)

const routes = [
  {
    path: '/',
    name: 'Index1',
      component: () => import("./../views/task/Concentrate")
  },
  {
    path: '/index',
    name: 'Index2',
    component: Index
  },
  {
    path: '/home',
    name: 'home',
    // route level code-splitting
    // this generates a separate chunk (about.[hash].js) for this route
    // which is lazy-loaded when the route is visited.
      /* webpackChunkName: "about" */
    component: () => import( './../views/base/Home.vue')
  },
   {
        path: "/de",
        name: "de",
        component: () => import('./../views/base/de.vue')
    },
    {
        path:'/record',
        name:'record',
        component: () => import("./../views/base/Record")
    },
    {
        path: "/task",
        name: "task",
        component: () => import("./../views/task/TaskView")
    },
    {
        path: "/concentrate",
        name: "concentrate",
        component: () => import("./../views/task/Concentrate")

    },
    {
        path: "/something",
        name: "something",
        component: () => import("./../views/something")

    }
]

const router = new VueRouter({
  mode: 'history',
  base: process.env.BASE_URL,
  routes
})

export default router
